
/**
 * @(#)McMail.java 2017年10月13日 下午7:53:18
 * <p>
 * Copyrights (C) 2017高德信息技术有限公司
 */
package com.wwy.monitor.model.tddl.dto;

import java.util.Date;

/**
 *
 */
public class MonitorAlertMailDTO {

    private Long id;
    /**
     * 邮件标题
     */
    private String mailTitle;
    /**
     * 邮件正文
     */
    private String mailText;
    /**
     * 收件人
     */
    private String toMails;
    /**
     * 抄送人
     */
    private String ccMails;
    /**
     * 触发邮件人id
     */
    private String userId;
    /**
     * 标识 0:未发送 1:发送中  2:发送成功  3:发送失败
     */
    private Integer flag;
    /**
     * 失败后重试次数
     */
    private Integer retryCount;
    /**
     * 数据状态 1:废弃  0:正常
     */
    private Integer status;
    /**
     * 最后发送邮件机器IP
     */
    private String hostIp;
    /**
     * 更新时间
     */
    private Date updateTime;
    /**
     * 创建时间
     */
    private Date createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMailTitle() {
        return mailTitle;
    }

    public void setMailTitle(String mailTitle) {
        this.mailTitle = mailTitle;
    }

    public String getMailText() {
        return mailText;
    }

    public void setMailText(String mailText) {
        this.mailText = mailText;
    }

    public String getToMails() {
        return toMails;
    }

    public void setToMails(String toMails) {
        this.toMails = toMails;
    }

    public String getCcMails() {
        return ccMails;
    }

    public void setCcMails(String ccMails) {
        this.ccMails = ccMails;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getHostIp() {
        return hostIp;
    }

    public void setHostIp(String hostIp) {
        this.hostIp = hostIp;
    }

    public Integer getRetryCount() {
        return retryCount;
    }

    public void setRetryCount(Integer retryCount) {
        this.retryCount = retryCount;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("MonitorAlertMailDTO [id=");
        builder.append(id);
        builder.append(", mailTitle=");
        builder.append(mailTitle);
        builder.append(", mailText=");
        builder.append(mailText);
        builder.append(", toMails=");
        builder.append(toMails);
        builder.append(", ccMails=");
        builder.append(ccMails);
        builder.append(", userId=");
        builder.append(userId);
        builder.append(", flag=");
        builder.append(flag);
        builder.append(", retryCount=");
        builder.append(retryCount);
        builder.append(", status=");
        builder.append(status);
        builder.append(", hostIp=");
        builder.append(hostIp);
        builder.append(", updateTime=");
        builder.append(updateTime);
        builder.append(", createTime=");
        builder.append(createTime);
        builder.append("]");
        return builder.toString();
    }

}